package com.lq.dubbo.rocketmq.shop.api;

import com.lq.dubbo.rocketmq.shop.entity.Result;
import com.lq.dubbo.rocketmq.shop.shop_pojo.TradeCoupon;

/**
 * @program: dubborocketmqshop
 * @description: 优惠券接口
 * @author: LQ
 * @create: 2021-06-08 15:20
 */
public interface ICouponService {

    /**
     * 根据id获取优惠券对象
     *
     * @param couponId
     * @return
     */
    TradeCoupon findOne(Long couponId);

    /**
     * 更新优惠券状态
     *
     * @param coupon
     * @return
     */
    Result updateCouponStatus(TradeCoupon coupon);
}
